//
//  ViewController.m
//  tableview多按钮选择
//
//  Created by MB__Lee on 2018/5/17.
//  Copyright © 2018年 MB__Lee. All rights reserved.
//

#import "ViewController.h"
#import "MBBTNTableviewFactory.h"


@interface ViewController ()<MBBTNTableviewDelegate>
@property(nonatomic,strong)MBBTNTableview *tableview;
@end

@implementation ViewController



- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
 
    MBBTNTableview *tableview =  [MBBTNTableviewFactory MBBTNTableviewFactoryCreatWithType:HouseTypeOffBuilding withFrame:CGRectMake(0, 0, self.view.bounds.size.width, 600)];
    tableview.BTNDelegate =self;
    [self.view addSubview:tableview];
    
    
}

-(void)MBBTNTableview:(MBBTNTableview *)tableview sendIndexPathArray:(NSMutableArray<NSIndexPath *> *)indexPathMut{
    for (NSIndexPath *indexpath in indexPathMut) {
        NSLog(@"indexpath----%@",indexpath);
    }
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
